package applet.molecule;

/**
 * Atom's 3D coordinates and the element it belongs to.
 * <p/>
 * For there is no logic operation in this class and we just use it as a
 * data structure, we easily declare all properties as public of convenience.
 */
public class Atom {
	
	/** The element this atom belongs to */
	public String element;
	
	/** X coordinate */
	public float x;
	
	/** Y coordinate */
	public float y;
	
	/** Z coordinate */
	public float z;

	/**
	 * Construct Atom. Also you can use none-parameter constructor and assign 
	 * the properties' value later. 
	 * 
	 * @param element The element this atom belongs to
	 * @param x X coordinate
	 * @param y Y coordinate
	 * @param z Z coordinate
	 */
	public Atom(String element, float x, float y, float z) {
		this.element = element;
		this.x = x;
		this.y = y;
		this.z = z;
	}
}
